/ Assembly List / LJCNetCommon / NetCommon / MemStreamToString

Namespace - LJCNetCommon


Parameters
stream - The stream object.

Returns

The string value.

Syntax

C#
public static String MemStreamToString(Stream stream)

Creates a string from a memory stream. (E)

Example

C#
using System.IO;
using LJCNetCommon;

// Creates a string from a memory stream.
private static void MemStreamToString()
{
  // Setup
  using (Stream stream = NetCommon.StringToMemStream("Text"))
  {
    // Creates a string from a memory stream.
    string text = NetCommon.MemStreamToString(stream);
  }
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.